<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>无标题文档</title>
		<link href="__VIEW__/css/style1.css" rel="stylesheet" type="text/css" />
		<link href="__VIEW__/css/select.css" rel="stylesheet" type="text/css" />
		<link href="__STATIC__/css/hdjs.css" rel="stylesheet" type="text/css" />
		<script>
			var ajaxCity = "{|U:'ajaxCity'}";
			var ajaxDist = "{|U:'ajaxDist'}";
		</script>
		<script type="text/javascript" src="__STATIC__/js/jquery-1.7.2.min.js"></script>
<!--		<script type="text/javascript" src="__STATIC__/js/hdjs.min.js"></script>-->
		<script type="text/javascript" src="__VIEW__/js/city.js"></script>

	</head>

	<body>

		<div class="place">
			<span>位置：</span>
			<ul class="placeul">
				<li><a href="#">首页</a>
				</li>
				<li><a href="#">会员管理</a>
				</li>
				<li><a href="#">会员列表</a>
				</li>
				<li><a href="#">收货地址</a>
				</li>
				<li>{$hd.get.username} 的添加收货地址</li>
			</ul>
		</div>

		<div class="formbody">

			<div id="usual1" class="usual">

				<div class="itab">
					<ul>
						<li><a href="#tab1" class="selected">收货地址</a>
						</li>
					</ul>
				</div>

				<div id="tab1" class="tabson">

					<div class="formtext">{$hd.get.username} 添加收货地址</div>
					<form action="{|U:'receivAddr'}" method="post" id="addAddrForm">
						<input type="hidden" name="uid" value="{$hd.get.uid}" />
						<ul class="forminfo">
							<li>
								<label>收货人<b>*</b>
								</label>
								<input name="re_name" type="text" class="dfinput" placeholder="请输入收货人" style="width:518px;" />
							</li>
							<li style="overflow:hidden;margin-bottom:10px;">
								<label for="" style="line-height: 20px;">所在地区<b>*</b></label>
								<div class="se">
									<!--省份选择-->
									<select name="province" id="province" style="opacity: 1;border:1px solid cornflowerblue;">
										<option value="0" selected="selected">--请选择/省份--</option>
										<foreach from="$province" key="$key" value="$val">
											<option value="{$val.provid}">{$val.provname}</option>
										</foreach>
									</select>
									<!--城市 -->
									<select name="city"  style="opacity: 1;border:1px solid cornflowerblue;" id="city">
										<option value="0" selected="selected">--请选择/市级--</option>
									</select>
									<!--地区-->
									<select name="dist" style="opacity: 1;border:1px solid cornflowerblue;" id="dist">
										<option value="0" selected="selected">--请选择/县--</option>
									</select>
									
									
									<span id="hd_address"></span>
								</div>

							</li>
							<li>
								<label for="truename">详细地址<b>*</b></label>
								<input id="re_address" name="re_address" type="text" class="dfinput" placeholder="请输入详细地址" style="width:518px;" />
							</li>
							<li>
								<label for="telphone">联系方式<b>*</b></label>
								<input id="re_phone" name="re_phone" type="text" class="dfinput" placeholder="联系方式" style="width:518px;" />
							</li>
							<li>
								<label for="telphone">邮编<b>*</b></label>
								<input id="re_zipcode" name="re_zipcode" type="text" class="dfinput" placeholder="联系方式" style="width:518px;" />
							</li>
							<li>
								<label>设为默认地址
								</label>
								<div class="vocation">
									<label for="lock">
										<input id="lock" type="radio" value="1" name="is_default" />默认</label>
									<label for="unlock">
										<input id="unlock" type="radio" value="0" name="is_default" checked="checked" />不默认</label>
								</div>
							</li>
							
							<li>
								<label>&nbsp;</label>
								<input name="" type="submit" class="btn" value="添加" />
							</li>
						</ul>

				</div>

				<!--保存所有在地区隐藏表单-->
				<input type="hidden" name="address" />
			</div>

			</form>
		</div>
		<script type="text/javascript">
		
			$('#addAddrForm').validate({
				re_name:{
					rule:{
						required:true
					},
					error:{
						required:'请输入收货人'
					},
					message:'请输入收货人姓名',
					success:'ok'
				},
				address:{
					rule:{
						required:true
					},
					error:{
						required:'请选择地区'
					},
					message:'请选择地区',
					success:'ok'
				},
				re_address:{
					rule:{
						required:true
					},
					error:{
						required:'请输入详细地址'
					},
					message:'请输入详细地址',
					success:'ok'
					
				},
				re_phone:{
					rule:{
						required:true
					},
					error:{
						required:'请输入联系方式'
					},
					message:'请输入联系方式',
					success:'ok'
				},
				re_zipcode:{
					rule:{
						required:true
					},
					error:{
						required:'请输入邮编'
					},
					message:'请输入邮编',
					success:'ok'
				},
				
				
			})
		</script>
	</body>

</html>